$(function () {

    $('#search-input').keydown(function (e) {
        if (e.keyCode===13) {
            console.log("回车事见被触发~");
            var type1 = $('#search-input').val();
            location.href="/queryTypeToBuy?type1="+type1;
  /*          $.ajax({
                url:'/queryTypeToBuy?type1='+type1,
                type:'POST',
                cache:'false',
                contentType:'application/json;charset=utf-8',
                success:function (data) {
                    console.log("data",data)
                    if (data.success){
                        console.log("成功")
                    }else {
                        alert("cuole");
                    }
                }
            })*/
        }
    });


});